package com.elysium.pojo.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AdminLoginDto {

    @NotEmpty(message = "账号不能为空！")
    private String username;

    @NotEmpty(message = "密码不能为空！")
    private String password;

    @NotNull(message = "参数不能为空！")
    private Integer type;

}
